package com.example.yuan.service;

import com.example.yuan.pojo.Emp;
import com.example.yuan.pojo.PageBean;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {
    PageBean page(Integer page, Integer pageSize,String name, Short gender, LocalDate begin, LocalDate end);

    void delete(List<Integer> ids);

    //新增员工
    void save(Emp emp);

    Emp getById(PathVariable id);

    void update(Emp emp);

    //员工登录
    Emp login(Emp emp);
}
